CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(TDengine)

IF (TD_WINDOWS)
  AUX_SOURCE_DIRECTORY(src SRC)
  INCLUDE_DIRECTORIES(inc ${TD_ROOT_DIR}/deps/pthread ${TD_ROOT_DIR}/src/inc)
  ADD_LIBRARY(os ${SRC})
  TARGET_LINK_LIBRARIES(os winmm IPHLPAPI ws2_32)
ENDIF ()
